package com.pactera.madp.cp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pactera.madp.common.core.util.R;
import com.pactera.madp.cp.api.dto.activity.ActivityDto;
import com.pactera.madp.cp.api.dto.activity.ActivitySaveDto;
import com.pactera.madp.cp.api.entity.activity.ActivityEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IActivityService extends IService<ActivityEntity> {

    IPage queryByDto(Page page, ActivityDto dto);

    Boolean compile(ActivitySaveDto dto);

    Boolean audit(List<Integer> ids, Integer actStatus, String actReason);

    R attend(Integer contactId, String url, HttpServletResponse response);

}
